package ptaPartTwo;
import java.util.Scanner;
public class FiveTwo {
	public static void main(String[] args) {
	Scanner input = new Scanner(System.in);
	while(input.hasNext())
	{
		int Num = input.nextInt();
		StringBuilder str = new StringBuilder();
		for(int i=0;i<Num;i++)
		{
			str=str.append(i);
		}
		int x =input.nextInt();
		int y =input.nextInt();
		System.out.println(str.substring(x, y));
	}
	
	}

}
